Skip to main content

All Questions

-1votes
1answer
55views

Get Session Model from webpage using jquery [closed]

I am doing an MVC 6 App. I have a model like this public class SearchModel { public string SSN { get; set; } = string.Empty; public string EmployeeNumber { get; set; } = string.Empty; ...
Diego's user avatar
  • 2,378
0votes
0answers
48views

Data Tables Refresh on Edit / Update

In my project, I have been using Data tables to show the list of data from the database per required view. So in the view, I have this code <div class="table-responsive mt-4" style="...
Dev Beginner 's user avatar
0votes
0answers
26views

MVC catch event when browser back button is clicked

I am doing an MVC 6 Application. I have a primary Menu in _layout Page. Every Manu has a Landing page, and I can navigate throughthat pages. I use a function to detect the browser's Back button and I ...
Diego's user avatar
  • 2,378
0votes
1answer
38views

Dynamic form in Asp.net framework and Jquery not handling the index recalculation

I’m working on a form that allows users to dynamically add and remove expense rows using jQuery. The issue I’m facing is with maintaining sequential indexes for each row, even after adding or removing ...
hello world's user avatar
1vote
0answers
67views

How to hide the checkboxes of the parent node in the dxTreeList?

I need to hide the parent node's checkbox (Boolean cell) in the tree List. I use DevExpress with jQuery. I am new to this tech. Kindly anyone help me out to solve this problem with efficient way. I ...
Guhan Srinivasan's user avatar
0votes
1answer
64views

How can I make an ajax call asynchronously from Javascript to mvc controller method and to wait for the result to proceed to next line of code

I am trying to get the result from the function called 'validateScheduleDate()' and only if the result comes from the function, then next line of code should be executed. I am trying to validate two ...
Alevel's user avatar
0votes
1answer
59views

jquery validate make one field required if another field is not empty

I'm having some issues with jQuery.validate 1.11 , with .Net 4.8 and MVC 5 with Razor. I have these two properties in my class: [StringLength(500, ErrorMessage = "{0} can have a max of {1} ...
user1210140's user avatar
1vote
2answers
67views

How to append List to FormData in JQuery?

I get model's values from view with this codeblock and this part is OK. var data = new FormData(); var datas = $(this).serializeArray(); for (var i = 0; i < datas.length; i++) { data.append(...
user26029025's user avatar
0votes
1answer
46views

Trouble posting contents of file input to controller action using jquery in ASP.Net Core 6.0

I am attempting to post a file to a controller action in order to save it, and have run into two different problems, when using $.post to post the data as shown here: $("#setting-form").on(&...
Na...'s user avatar
0votes
0answers
39views

Select2 does not show my selected data on the screen

I'm stuck on a problem and I was wondering if you could help me. I have an ASP .NET MVC system, and I have a widget screen with the function of editing a widget. The call to edit a widget is in a ...
Jeferson Carlos's user avatar
1vote
0answers
62views

How to set ajax success data to Nop Editor textbox in nopcommerce

I am working in nopcommerce 4.60.6. In that I am using one nop-editor textbox. Here is the view code <div class="form-group row"> <div class="col-md-3"> <...
s.k.Soni's user avatar
0votes
0answers
19views

Design Rationale on why AspNet MVC Project template includes jQuery script at the bottom

In any page that is served to your browser from an Asp Net MVC web application with Razor pages, the page is first built up by razor, on the server side, by taking the _layout.cshtml page and then ...
Dean P's user avatar
  • 2,245
0votes
1answer
65views

I have inputs types of checkbox and when I perform delete or retrieve methods it works but page is not reload

In my Asp.Net Mvc project, I have checkbox type inputs and I get the Ids of items through them by using jquery and send them controller by using ajax. Methods are working but after work the page is ...
Oğuzhan's user avatar
1vote
2answers
70views

remove multiple attribute from chosen select jquery

I have a dropdown with chosen select plugin @Html.DropDownListFor(x => x.ML.AccountID, Model.Accounts, new { id = "ddl_account", @class = "form-control form-control-sm chosen-select&...
Saurabh's user avatar
  • 1,631
-1votes
1answer
70views

Run a script that checks for SQL Server changes that returns a boolean value

I already plan on doing this differently with webhooks, but for now I just need to show a PoC for this where the browser client will check on intervals if there's any changes to an SQL Server database ...
Ray Jay's user avatar

153050per page
close